﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="JT_RePrintManager.aspx.cs" Inherits="JTicket.UI.JT_RePrintManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <!--分页Script-->
    <script type="text/jscript">
        var pages = 1;
        var page = 0;
        function pageselectCallback(page_id, jq) {
            var keyWord = $("#KeyWord").attr("value");
            window.location.href = "JT_RePrintManager.aspx?KeyWord="
            + keyWord + "&page=" + page_id;
        }
        $(document).ready(function () {
            $("#pager").pagination(pages, {
                current_page: page,
                items_per_page: 1,
                first_text: "首页",
                prev_text: "上一页",
                next_text: "下一页",
                last_text: "尾页",
                ellipse_text: " ",
                callback: pageselectCallback
            });
        });
        //查询
        function IsSelect() {
            window.location.href = "JT_RePrintManager.aspx?KeyWord="
            + $("#KeyWord").attr("value") + "&page=0";
        }


        function IsExcut(a) {
            if (confirm("是否通过打印审核！")) {
                JTicket.UI.Service.JT_ThSvc.IsRe(a,
    function Success(Mes) {
        alert(Mes);
        window.location.href = "JT_RePrintManager.aspx";
    },
    function Fail() {
        isAlertError;
    })
            }
        }

        function IsExc() { 
            if (confirm("是否通过打印审核！")) {
                JTicket.UI.Service.JT_ThSvc.IsRes(CheckValue(),
    function Success(Mes) {
        alert(Mes); window.location.href = "JT_RePrintManager.aspx";
    },
    function Fail() {
        isAlertError();
    }
    )
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="sm" runat="server">
        <Services>
            <asp:ServiceReference InlineScript="true" Path="~/Service/JT_ThSvc.asmx" />
        </Services>
    </asp:ScriptManager>
    <table align="center" border="0" cellpadding="4" cellspacing="1" class="toptable grid"
        width="100%">
        <tr>
            <td class="category t2" height="25" width="100px">
                重打票管理
            </td>
            <td class="category" height="25">
                <a href="JT_RePrintManager.aspx?S=1">未审核记录</a> <a href="JT_RePrintManager.aspx?S=0">
                    已审核记录</a>
            </td>
        </tr>
    </table>
    <table cellpadding="1" cellspacing="1" id="TbInfo" class="TbInfo">
        <tr>
            <td class="B" style="width: 5%">
                选择
            </td>
            <td class="B" style="width: 10%">
                订单号
            </td>
            <td class="B">
                演出名称
            </td>
            <td class="B" style="width: 10%">
                所属剧院编号
            </td>
            <td class="B" style="width: 10%">
                售票员
            </td>
            <td class="B" style="width: 8%">
                审核
            </td>
        </tr>
        <%if (_shenhe.Count > 0)
          {%>
        <%foreach (var x in _shenhe)
          {%>
        <tr>
            <td class="td1">
                <input name="cb" class="checkbox" type="checkbox" value="<%=x.flag%>" style="border: 0" />
            </td>
            <td class="td1">
                <%=x.flag%>
            </td>
            <td class="td1">
                <%=x.Stitle%>
            </td>
            <td class="td1">
                <%=x.ThCode%>
            </td>
            <td class="td1">
                <%=x.opercode%>
            </td>
            <td class="td1">
                <%=st(x.shenhe,x.flag)%>
            </td>
        </tr>
        <%} %>
        <%} %>
    </table>
    <div id="pager" class="pagination" style="background: #FFFFFF">
    </div>
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
        <tr bgcolor="#E7E7E7">
            <td align="center" bgcolor="#E7E7E7" style="color: #000000" colspan="4">
                <input id="chkall" class="checkbox" type="checkbox" onclick="CheckAll(this.form)"
                    style="border: 0" />全选<asp:DropDownList ID="DropDownList1" runat="server">
                        <asp:ListItem Value="1">---审核所选---</asp:ListItem>
                    </asp:DropDownList>
                <input type="button" id="Button1" value="执行操作" onclick="return IsExc()" onmousemove="showBtnOver(this)"
                    onmouseout="showBtnOut(this)" class="submitMiniGreen" />
            </td>
        </tr>
    </table>
</asp:Content>
